//http://openlayers.org/en/master/apidoc/ol.Map.html
var map = new ol.Map({
//	Adds the given layer to the top of this map.
  layers: [
    new ol.layer.Tile({
//    	Layer source for OpenStreetMap
//    	http://openlayers.org/en/v3.0.0/apidoc/ol.layer.Tile.html
      source: new ol.source.OSM()
    })
  ],
  renderer: exampleNS.getRendererFromQueryString(),
  target: 'map',
  controls: ol.control.defaults({
    attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
      collapsible: false
    })
  }),
//  	http://openlayers.org/en/v3.0.0/apidoc/ol.View.html
  view: new ol.View({
    center: [0, 0],
    zoom: 2
  })
});

jQuery('#map').after('<button type="button" ' +
    'onclick="map.getView().setZoom(map.getView().getZoom() - 1);">' +
    'Zoom out</button>');
jQuery('#map').after('<button type="button" ' +
    'onclick="map.getView().setZoom(map.getView().getZoom() + 1);">' +
    'Zoom in</button>');
